package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bean.Bargain;



@Transactional
public interface BargainService {
	
	
	public void insert(Bargain bean);
	 Bargain selectBymaketingid(Integer maketingid);
	
	Bargain selectByPrimaryKey(Integer id);
	
	
	  List<Bargain> selectAll();
	    List<Bargain> selectAllByUserid(Integer userid);
	    int deleteByPrimaryKey(Integer id);
	    List<Bargain> selectAllcnameuname(Map map);
	    List<Bargain> selectAllByUseridcnameuname(Map map);
	    Bargain selectByPrimaryKeyduo(Integer id);
}
